# -*- coding:utf-8 -*-
from Tkinter import *
from ttk import *
import os

root = Tk()
root.title('有的tab的窗口V1.0')
notebook = Notebook(root)  # notebook属于ttk

frame1 = Frame(notebook)
label1 = Label(frame1, text="I love Beijing!!!\nI love China!!!")
label1.pack()

frame2 = Frame(notebook)
label2 = Label(frame2, text="I love Shanghai!!!\nI love China!!!")
label2.pack()

notebook.add(frame1, text="Beijing")
notebook.add(frame2, text="Shanghai")
notebook.pack()

root.mainloop()

